package com.project.seckill.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.project.seckill.entity.ProductStockLog;
import com.project.seckill.mapper.ProductStockLogMapper;
import com.project.seckill.service.ProductStockLogService;
import org.springframework.stereotype.Service;

@Service
public class ProductStockLogServiceImpl extends ServiceImpl<ProductStockLogMapper, ProductStockLog> implements ProductStockLogService {

    @Override
    public void updateProductStockLogStatus(String productStockLogId, int status) {
        ProductStockLog stockLog = this.getById(productStockLogId);
        stockLog.setStatus(status);
        this.updateById(stockLog);
    }
}
